package operation;

import book.Book;
import book.BookList;

public class ExitOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        int currentSize= bookList.getUsedSize();
        for (int i = 0; i <currentSize ; i++) {
           bookList.setBook(i,null);

        }
       System.exit(0);
    }
}
